<?php
/**************************************************
 *  Created:  2010-06-08
 *
 *  推荐微博用户搜索
 *
 *  @Xweibo (C)1996-2099 SINA Inc.
 *  @Author zhenquan <zhenquan@staff.sina.com.cn>
 *
 ***************************************************/
class srhrecmduser_mod
{
	/// 获取绑定信息
	function default_action() {

		$result = DR('mgr/userRecommendCom.getUserByName', '', $_GET['wbname']);

		$rs = '';
		if ($result['errno'] == 0) {
			$rs = &$result['rst'];
		}
		
		$uid = USER::uid();
			TPL :: assign('sina_uid', $uid);

			$rst = DR('xweibo/xwb.getFriendIds', '', $uid, null, null, -1, 5000);
			$rst = $rst['rst'];
			$ids = $rst['ids'];
			//$ids = $wb->getFriendIds($uid, null, null, -1, 5000);

			//$rs = array_slice($rs, 0, 4);
			foreach($rs as $key => $row) {
				if (in_array($row['uid'], $ids)) {
					$rs[$key]['following'] = true;
				}
			}
		
		TPL::assign('data', $rs);

		TPL::display('srhrecmduser');
	}


}
?>